package br.ufrr.patrimonio.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import br.ufrr.patrimonio.converter.BaseEntity;

@Entity
public class Fornecedor implements Serializable, BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="forn_id")
	private Long id;
	
	@Column(name="forn_nome")
	private String nome;

	@Column(name="forn_cnpj")
	private String cnpj;
	
	@Column(name="forn_email")
	private String email;
	
	@Column(name="forn_endereco")
	private String endereco;
	
	@Column(name="forn_telefone")
	private String telefone;
	
	@ManyToOne
	@JoinColumn(name="fk_municipio")
	private Municipio municipio;

		
	/** Getters And Setters **/
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCnpj() {
		return cnpj;
	}

	public void setCnpj(String cnpj) {
		this.cnpj = cnpj;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEndereco() {
		return endereco;
	}

	public void setEndereco(String endereco) {
		this.endereco = endereco;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public Municipio getMunicipio() {
		return municipio;
	}

	public void setMunicipio(Municipio municipio) {
		this.municipio = municipio;
	}

	public boolean equalsIgnoreCase(Fornecedor fornecedor) {
		// TODO Auto-generated method stub
		return false;
	}
	
}
